Script: if objValue="Open" then ┬ get wsGet(wdID,"theList","Text")┬ put the number of lines of it into num┬ if num<2 then┬ wsSet wdID,"Graph values","Disabled", "true"┬ wsSet wdID,"Prune List","Disabled", "true"┬ if num<1 then┬ wsSet wdID,"Clear List","Disabled", "true"┬ end if┬ end if┬ wsSet wdID,"num","Text",(num&" values")┬ if the short name of this bg="stocks" then┬ wsSet wdID,"value","Visible", "TRUE"┬ wsSet wdID,"price","Visible", "TRUE"┬ get wsGet(wdID,"price","Hilite")┬ wsSet wdID,"value","hilite",(not it)┬ else┬ wsSet wdID,"value","Visible", "false"┬ wsSet wdID,"price","Visible", "false"┬ end if┬end if
Params: i3_Text┬i4_Text┬i0_TopLeft┬i23_Hilite
Result: i23_Hilite┬i4_Text
ItemType: PUSH
Rect: 210,161,282,181
Name: OK
DefaultItem: TRUE
AutoClose: TRUE
ItemType: PUSH
Rect: 206,125,286,145
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
ItemType: TEXT
Rect: 0,0,202,14
TextFont: Geneva
TextSize: 10
AutoSize: FALSE
Name: Title
TextStyle: Bold
Text: test
ItemType: LIST
Rect: 4,27,178,186
TextFont: Monaco
TextSize: 9
AutoSize: FALSE
Name: theList
Text: 1/13/56 $433256 ┬ 12/18/95 $55
Script: get wsGet(wdID,"theList","SelectionText")┬if it¡empty then┬ put it into tt┬ wsSet wdID,"OK","Disabled", "true"┬ -- wsSet wdID,"Cancel","Disabled", "true"┬ wsSet wdID,"Clear List","Disabled", "true"┬ wsSet wdID,"Add To List","Disabled", "true"┬ wsSet wdID,"Prune List","Disabled", "true"┬ wsSet wdID,"delete","Disabled", "false"┬ wsSet wdID,"add","Visible", "false"┬ wsSet wdID,"change","DefaultItem", "true"┬ wsSet wdID,"0","Height", "276"┬ if the number of words of tt<3 then -- only 1 line selected┬ wsSet wdID,"change","Disabled", "FALSE"┬ wsSet wdID,"pricer","disabled","false"┬ wsSet wdID,"date","disabled","false"┬ wsSet wdID,"pricer","Text",stripit(word 2 of tt)┬ wsSet wdID,"date","Text",(word 1 of tt)┬ wsSet wdID,"date","Selection", "0,20"┬ else┬ wsSet wdID,"change","Disabled", "true"┬ wsSet wdID,"pricer","Text",""┬ wsSet wdID,"date","Text",""┬ wsSet wdID,"pricer","disabled","true"┬ wsSet wdID,"date","disabled","true"┬ end if┬else┬ wsSet wdID,"0","Height", "216"┬ wsSet wdID,"OK","Disabled", "false"┬ -- wsSet wdID,"Cancel","Disabled", "false"┬ wsSet wdID,"Clear List","Disabled", "false"┬ wsSet wdID,"Add to List","Disabled", "false"┬ wsSet wdID,"Prune List","Disabled", "false"┬ wsSet wdID,"change","Disabled", "true"┬ wsSet wdID,"pricer","disabled","false"┬ wsSet wdID,"date","disabled","false"┬end if┬┬
Text: Click on a line to edit it; shift-click to delete multiple lines
ItemType: LBL
Rect: 29,228,57,241
TextFont: Geneva
TextSize: 10
Text: Date:
ItemType: LINE
Rect: 5,218,269,219
ItemType: LBL
Rect: 141,228,174,241
TextFont: Geneva
TextSize: 10
Text: Value:
ItemType: TEXT
Rect: 56,227,121,244
TextFont: Geneva
TextSize: 10
AutoSize: FALSE
Name: date
LockText: FALSE
Text: 11/11/95
ItemType: TEXT
Rect: 172,227,237,244
TextFont: Geneva
TextSize: 10
AutoSize: FALSE
Name: pricer
LockText: FALSE
ItemType: PUSH
Rect: 99,252,171,269
TextFont: Geneva
TextSize: 10
Disabled: TRUE
Name: change
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"date","Text")┬put it into dd┬get wsGet(wdID,"pricer","Text")┬put stripit(it) into newPrice┬if (newPrice¡empty) and (newPrice is a number) then┬ get wsGet(wdID,"Title","Text")┬ if it="Index List" then┬ put round(newPrice) into pp┬ else┬ if the short name of this bg="stocks" then┬ get wsGet(wdID,"price","Hilite")┬ if it then┬ set numberformat to "0.000"┬ put newPrice into pp┬ add 0 to pp┬ else┬ put placeSign(round(newPrice)) into pp┬ end if┬ else┬ put placeSign(round(newPrice)) into pp┬ end if┬ end if┬ put align((dd&","&pp),"9,R, ","10,R, ") into aa┬ wsSet wdID,"theList","TextOfSelection",aa┬ get wsGet(wdID,"theList","Text")┬ put NTFSqueezeText(it,"A") into aa┬ if the number of lines of aa>1 then put fullsort(aa,"t=D","c=word 1") into aa┬ wsSet wdID,"theList","Text", aa┬ wsSet wdID,"0","Height", "216"┬ wsSet wdID,"OK","Disabled", "false"┬ wsSet wdID,"OK","DefaultItem", "true"┬ wsSet wdID,"Cancel","Disabled", "false"┬ wsSet wdID,"Clear List","Disabled", "false"┬ wsSet wdID,"Add to List","Disabled", "false"┬ wsSet wdID,"Prune List","Disabled", "false"┬else┬ alertNote("Value needs to be a number.")┬ wsSet wdID,"pricer","Selection", "0,20"┬end if┬set numberformat to "0"┬--end mouseUp
Script: get wsGet(wdID,"date","Text")┬put it into dd┬get wsGet(wdID,"pricer","Text")┬put stripit(it) into newPrice┬if (newPrice¡empty) and (newprice is a number) then┬ get wsGet(wdID,"Title","Text")┬ if it="Index List" then┬ put round(newPrice) into pp┬ else┬ if the short name of this bg="stocks" then┬ get wsGet(wdID,"price","Hilite")┬ if it then┬ set numberformat to "0.000"┬ put newPrice into pp┬ add 0 to pp┬ else┬ put placeSign(round(newPrice)) into pp┬ end if┬ else┬ put placeSign(round(newPrice)) into pp┬ end if┬ end if┬ put align((dd&","&pp),"9,R, ","10,R, ") into aa┬ get wsGet(wdID,"theList","Text")┬ put return&aa after it┬ put NTFSqueezeText(it,"A") into aa┬ if the number of lines of aa>1 then put fullsort(aa,"t=D","c=word 1") into aa┬ wsSet wdID,"theList","Text",aa┬ wsSet wdID,"0","Height", "216"┬ wsSet wdID,"OK","Disabled", "false"┬ wsSet wdID,"OK","DefaultItem", "true"┬ wsSet wdID,"Cancel","Disabled", "false"┬ wsSet wdID,"Clear List","Disabled", "false"┬ wsSet wdID,"Add to List","Disabled", "false"┬ wsSet wdID,"Prune List","Disabled", "false"┬ wsSet wdID,"change","Disabled", "true"┬ wsSet wdID,"delete","Disabled", "false"┬ wsSet wdID,"add","Visible", "false"┬ get wsGet(wdID,"theList","Text")┬ put the number of lines of it into num┬ if num >1 then┬ wsSet wdID,"Graph Values","Disabled", "FALSE"┬ else┬ wsSet wdID,"Graph Values","Disabled", "True"┬ end if┬ set numberformat to "0"┬ get wsGet(wdID,"theList","Text")┬ put the number of lines of it into num┬ wsSet wdID,"num","Text",(num&" values")┬else┬ alertNote("Value needs to be a number.")┬ wsSet wdID,"pricer","Selection", "0,20"┬end if
ItemType: PUSH
Rect: 4,252,84,269
TextFont: Geneva
TextSize: 10
Name: delete
Script: wsSet wdID,"theList","TextOfSelection",""┬wsSet wdID,"0","Height", "216"┬wsSet wdID,"OK","Disabled", "false"┬wsSet wdID,"OK","DefaultItem", "true"┬wsSet wdID,"Cancel","Disabled", "false"┬wsSet wdID,"Clear List","Disabled", "false"┬wsSet wdID,"Add to List","Disabled", "false"┬wsSet wdID,"Prune List","Disabled", "false"┬set numberformat to "0"┬get wsGet(wdID,"theList","Text")┬put the number of lines of it into num┬wsSet wdID,"num","Text",(num&" values")
ItemType: PUSH
Rect: 203,2,289,19
TextFont: Geneva
TextSize: 10
TextStyle: Bold
AutoSize: FALSE
Name: Graph values
AutoClose: TRUE
ItemType: TEXT
Rect: 6,203,292,215
TextFont: Geneva
TextSize: 9
Name: note11
Text: (values are stored only if this option is chosen in Preferences)
ItemType: TEXT
Rect: 4,14,46,26
TextFont: Geneva
TextSize: 9
Name: num
Text: 2 values
ItemType: RAD
Rect: 69,14,117,26
TextFont: Geneva
TextSize: 9
Visible: FALSE
Name: value
Hilite: TRUE
Script: wsSet wdID,"theList","Text",fld "valueList"┬wsSet wdID,"0","Height", "216"┬get wsGet(wdID,"theList","Text")┬put the number of lines of it into num┬if num<2 then┬ wsSet wdID,"Graph values","Disabled", "true"┬ wsSet wdID,"Prune List","Disabled", "true"┬ if num<1 then┬ wsSet wdID,"Clear List","Disabled", "true"┬ end if┬else┬ wsSet wdID,"Graph values","Disabled", "false"┬ wsSet wdID,"Prune List","Disabled", "false"┬ wsSet wdID,"Clear List","Disabled", "false"┬end if┬wsSet wdID,"num","Text",(num&" values")┬┬wsSet wdID,"OK","Disabled", "false"┬wsSet wdID,"Add to List","Disabled", "false"┬wsSet wdID,"change","Disabled", "true"┬wsSet wdID,"pricer","disabled","false"┬wsSet wdID,"date","disabled","false"
ItemType: RAD
Rect: 117,14,164,26
TextFont: Geneva
TextSize: 9
Visible: FALSE
Name: price
Script: wsSet wdID,"theList","Text",fld "priceList"┬wsSet wdID,"0","Height", "216"┬get wsGet(wdID,"theList","Text")┬put the number of lines of it into num┬if num<2 then┬ wsSet wdID,"Graph values","Disabled", "true"┬ wsSet wdID,"Prune List","Disabled", "true"┬ if num<1 then┬ wsSet wdID,"Clear List","Disabled", "true"┬ end if┬else┬ wsSet wdID,"Graph values","Disabled", "false"┬ wsSet wdID,"Prune List","Disabled", "false"┬ wsSet wdID,"Clear List","Disabled", "false"┬end if┬wsSet wdID,"num","Text",(num&" values")┬┬wsSet wdID,"OK","Disabled", "false"┬wsSet wdID,"Add to List","Disabled", "false"┬wsSet wdID,"change","Disabled", "true"┬wsSet wdID,"pricer","disabled","false"┬wsSet wdID,"date","disabled","false"